import React, { Component } from 'react'
// import { Button, WhiteSpace, WingBlank } from 'antd-mobile';
import { HashRouter, Redirect, Route, Switch } from 'react-router-dom';
import Home from './pages/Home';
import CityList from './pages/CityList';
import NotFound from './pages/NotFound'
import Map from './pages/Map';
export default class App extends Component {
  render() {
    return (
      <HashRouter>
        <Switch>
          {/* 定义路径跟页面的匹配关系 */}
          <Route path="/" exact render={() => <Redirect to='/home' />} />
          <Route path="/map" component={Map} />
          <Route path="/home" component={Home} />
          <Route path="/citylist" component={CityList} />
          <Route path="*" component={NotFound} />
        </Switch>
      </HashRouter>
    )
  }
}
